home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / science / sm32a.zip / SYMBMATH.HLP < prev    next >
Text File  |  1994-03-28  |  10KB  |  194 lines

  1.             8.      Keywords
  2.  
  3.     SymbMath has three versions: Shareware Version A, Student
  4. Version B and Advanced Version C. The shareware version lacks the 
  5. solve(), trig (except sin(x) and cos(x)), and hyerbolic functions, 
  6. (lack 10% keywords) and the student version lacks the hyerbolic
  7. functions (lack 5% keywords). You cannot input these lack functions
  8. in shareware or student version.
  9.     Upper- and lower-case letters are different until the switch
  10. lowercase is set to on (i.e. lowercase := on).
  11.     All keywords are lower-case letters until the switch
  12. lowercase := on.
  13.     There are two types of the keywords: internal and external.
  14. The internal keywords have been compiled into the SymbMath system,
  15. so you cannot change them. The external ones are in files, so you
  16. can change their name or property. Usages of both types are the same.
  17.     The following only includes the internal and some external 
  18. keywords. You can define your own keyword and add your defined function. 
  19. If some keywords do not work, you should check whether or not the
  20. libraries *.(x) are in the default directory.
  21.  
  22.  
  23.          8.1        Keywords in Topic Order
  24. ---------------------------------------------------------------------
  25. 1. Algebraic operators: +, -, *, /, ^, **, ().
  26. 2. Relational operators: ==, >, >=, <, <=, <>.
  27. 3. Assignments: :=
  28. 4. Equation: solve(x^2=1,x), solve([x+y=b,x-y=c], [x,y]), psolve(f(x),x),
  29.              nsolve(cos(x)=x,x), nsolve(f(x)=0,x,x0),
  30.              dsolve(y'(x)=f(x,y), y(x),x), =.
  31. 5. Comment: #.
  32. 6. Built-in constants: i, e, pi, inf, zero, constant, discont, c_inf,
  33.     undefined.
  34. 7. Built-in variables: last.
  35. 8. Logic operators: and, or, not(x).
  36. 9. Algebraic functions: -x, sqrt(x), n!, fac(n), mod(x,y), div(x,y),
  37.     random(x), expand(x), factor(x), factor(y,x), root(x,n).
  38. 10. Complex to real: re(x), im(x), abs(x), |x|, arg(x), sign(x).
  39. 11. Exponential functions: exp(x), ln(x), log10(x).
  40. 12. Trig functions: sin(x), cos(x), tan(x), csc(x), sec(x), cot(x), 
  41.     asin(x), acos(x), atan(x), acot(x), asec(x), acsc(x), atan2(x,y).
  42. 13. Hyperbolic functions: sinh(x), cosh(x), tanh(x), csch(x), sech(x),
  43.     coth(x), asinh(x), acosh(x), atanh(x), acoth(x), acsch(x),
  44.     asech(x).
  45. 14. Special math functions: ei(x), ei(n,x), gamma(x), gamma(n,x), erf(x),
  46.     si(x), ci(x), li(x), li(n,x).
  47. 15. Defining functions: f(x_):=x^2, f(x_) := if(x>0 then x^2).
  48. 16. Defining procedures: f(x_):=block(p:=x^2,p,local(p))
  49. 17. Defining rules: log(x_ * y_) := log(x)+log(y), f'(x_):=sin(x).
  50. 18. Clear: clear(x), clear(f(x)), clear(a>0).
  51. 19. Calculus functions: 
  52.     Differentiating: d(y,x), d(y,x,n),  diff(y,x=x0), diff(y,x=x0,n), f'(x)
  53.     Integrating:     inte(y,x), inte(y,x,xmin,xmax), ninte(y,x,xmin,xmax),
  54.     Substituting:    subs(y,x=x0)
  55.     Limit:           lim(y,x=x0), lim(y,x=x0+zero), nlim(y, x=x0),
  56.         laplace(y,x), sum(y, x,xmin,xmax,dx), partsum(y,x), infsum(y,x),
  57.     prod(y, x,xmin,xmax,dx), series(y,x), series(y,x,order).
  58. 20. Conversion functions:
  59.         ratio(x), round(x), trunc(x), nume(a/b), deno(a/b), table(y,x),
  60.         number(x), string(x), term(a+b), mult(a*b), type(x).
  61. 21. Numeric computation: num(x), nsolve(cos(x)=x,x), nsolve(cos(x)=x,x,x0),
  62.         ninte(y,x,xmin,xmax), nlim(y,x=x0), numeric:=on.
  63. 22. Test functions: isodd(x), iseven(x), isinteger(x), isratio(x),
  64.         isreal(x), iscomplex(x), isnumber(x), islist(x), isfree(y,x),
  65.         issame(x), islarger(a,b), isless(a,b), type(x)=="real".
  66. 23. Table: table(y,x), table(y, x,xmin,xmax,dx).
  67. 24. Arrays and array index: a[1]:=1, do(a[x]:=x, x,xmin,xmax,dx), a[1].
  68. 25. Lists and list index: [a,b], [list(y,x,xmin,xmax)], member([a],j),
  69.           last[1], reverse([x]).
  70. 26. Statistics: average([a,b]), max([a,b]), min([a,b]), listsum([a,b]),
  71.                 length([a,b]).
  72. 27. Switches: numeric, output, expand, expandexp, lowercase,
  73.     :=, on, off, basic, fortran, prolog, math.
  74. 28. DOS Commands: system("dir").
  75. 29. Comma: , , from, to, step, then, else, until.
  76. 30. Assume: assume(a>0), isreal(x):=1.
  77. 31. Conditional: if(x>0 then x), if(x>0 then x else -x).
  78. 32. Loop: repeat(expr until x>5), do(expr, x,xmin,xmax,dx),
  79.           list(y,x,xmin,xmax).
  80. 33. Reading: readfile("file"), readchar, readline.
  81. 34. Writing: openfile("file"), closefile("file"), writes(x), null, newline.
  82. 35. Plot: plot(x^3,x), plot(y,x,min,xmax), plot(y,x,xmin,xmax,ymin,ymax),
  83.     dotplot(x^3,x), dotplot(y,x,min,xmax), dotplot(y,x,xmin,xmax,ymin,ymax),
  84.     paraplot(x(t),y(t),t), paraplot(x(t),y(t),t,t1,t2), polaplot(r(t),t),
  85.     polaplot(r,t,tmin,tmax), dataplot([x1,x2],[y1,y2]), listplot([y1,y2]).
  86. 36. Graph: graph, text, line(x1,y1,x2,y2), lineto(x,y), linerel(dx,dy),
  87.            ellipse(x,y,), putpixel(x,y,color), moveto(x,y), moverel(dx,dy),
  88.            arc(x,y,r,t1,t2), getmaxx, getmaxy, setcolor(white),
  89.            setbkcolor(red), setviewport(x1,y1,x2,y2,clip),
  90.         setlinestyle(style,dir,thick), settextstyle(font,dir,size),
  91.         circle(x,y,r), oval(x,y,xr,yr), settextjustify(hor,ver),
  92.         getx, gety, getbkcolor, getcolor.
  93. 37. String: "123", concat("a","b"), break("ab",1), length("a"), string(1).
  94. 38. Getting parts: type(x), left(a=b), right(a=b), term(a+b), mult(a*b),
  95.             coef(y,x), coef(y,x,n), coefall(y,x), power(x^n), base(x^n),
  96.             argue(x), sequence(x), re(x), im(x), int(x), frac(x).
  97. 39. Database: phoneno(x), colorno(x), atom_wei(x)
  98. --------------------------------------------------------------------------
  99.  
  100.  
  101.        8.2          Keywords in Alphabetical Order
  102. ---------------------------------------------------------------------------
  103. abs(x)          acos(x)         acosh(x)              acot(x)
  104. acoth(x)        acsc(x)         acsch(x)              and
  105. arc(x,y,ang1,ang2,r)            arg(x)                argue(x)
  106. asec(x)         asech(x)        asin(x)               asinh(x)
  107. assume(x>0)     atan(x)         atan2(x,y)            atanh(x)
  108. atom_wei(x)     average([a,b])
  109.  
  110. base(x^n)       basic           block(p:=x^2,p,local(p))
  111. break("ab",2)
  112.  
  113. ci(x)           circle(x,y,r)   clear(x)               cleared
  114. closefile("x")  coef(y,x)       coef(y,x,n)            coefall(y,x)
  115. colorno(x)      concat("a","b") constant               cos(x)
  116. cosh(x)         cot(x)          coth(x)                csc(x)
  117. csch(x)         c_inf
  118.  
  119. d(y,x)          d(y,x,n)        degree                  deno(a/b)
  120. diff(y,x=x0)    diff(y,x=x0,n)  div(x,y)                discont
  121. do(expr,x,xmin,xmax,dx)         done                    dotplot(y,x)
  122. dotplot(y,x,xmin,xmax)          dsolve(y'(x)=sin(x),y(x),x)
  123.  
  124. e               ei(x)           ei(n,x)
  125. ellipse(x,y,ang1,ang2,xr,yr)    else                    eval(x)
  126. erf(x)          exp(x)          expand(x)               expand
  127. expandexp
  128.  
  129. f'(x)           fac(x)          factor(x)               factor(y,x)
  130. fortran         frac(x)         from
  131.  
  132. gamma(x)        gamma(n,x)      gcd(a,b)                getbkcolor
  133. getcolor        getmaxx         getmaxy                 getx
  134. gety            graph
  135.  
  136. i               if(c,t)         if(c,t,f)               im(x)
  137. inf             infsum(y,x)     int(x)                  inte(y,x)
  138. inte(y,x,xmin,xmax)             inverse(x)              iscomplex(x)
  139. iseven(x)       isfree(y,x)     isinteger(x)            islarger(a,b)
  140. isless(a,b)     islist(x)       isodd(x)                isratio(x)
  141. isreal(x)       issame(x,y)     isnumber(x)
  142.  
  143. laplace(y,x)    last            left(a=b)               length(x)
  144. li(x)           li(n,x)         lim(y,x=x0)             line(x1,y1,x2,y2)
  145. lineto(x,y)     linerel(dx,dy)  list(y,x,xmin,xmax)     listsum(x)
  146. ln(x)           local(a)        local(a,b)              log10(x)
  147. lowercase
  148.  
  149. math            max([a,b])      member(x,n)             min([a,b])
  150. mod(x,y)        moveto(x,y)     moverel(dx,dy)          mult(x*y)
  151.  
  152. newline         ninte(y,x,xmin,xmax)                    nlim(y,x=x0)
  153. not(x)          nsolve(y,x)     nsolve(y,x,x0)          null
  154. num(x)          number(x)       nume(a/b)               numeric
  155.  
  156. off             on              openfile("x")           or
  157. order(y,x)      output          oval(x,y,xr,yr)
  158.  
  159. paraplot(x(t),y(t),t)           paraplot(x(t),y(t),t,t1,t2)
  160. partsum(y,x)    pi              plot(y,x)               plot(y,x,xmin,xmax)
  161. plot(y,x,xmin,xmax,ymin,ymax)   phoneno(x)              polaplot(r,t)
  162. polaplot(r,t,t1,t2)             power(x^n)              prod(y,x,xmin,xmax)
  163. prolog          psolve(f(x),x)  putpixel(x,y,color)
  164.  
  165. random          random(x)       ratio(x)                re(x)
  166. react(x)        readchar    readfile("x")           readline
  167. repeat(a:=1+a until a>2)        reverse([a])            right(a=b)
  168. root(x,n)       round(x)
  169.  
  170. sec(x)          sech(x)         series(y,x)             serie(y,x,n)
  171. sequence([x])   setbkcolor(0)   setcolor(1)
  172. setlinestyle(style,dir,thick)   settextjustify(hor,ver)
  173. settextstyle(font,dir,size)     setviewport(x1,y1,x2,y2,clip)
  174. si(x)           sign(x)         sin(x)                  sinh(x)
  175. solve(eq,x)     sqrt(x)         subs(y,x=x0)            sum(y,x,xmin,xmax)
  176. step            string(x)       system("dir")
  177.  
  178. table(y,x)      table(y,x,xmin,xmax)                    tan(x)
  179. tanh(x)         term(a+b)       text                    then
  180. to              trunc(x)        type(x)
  181.  
  182. undefined       until
  183.  
  184. writes(x)
  185.  
  186. zero
  187.  
  188. +               -               *               /               ^ 
  189. **              ()              []              =               := 
  190. ==              >               >=              <               <=
  191. <>              !               #               ,               |x|
  192. "x"             '
  193. -----------------------------------------------------------------------
  194.